﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/FrameMain.master" AutoEventWireup="true"
    Theme="SkinFile" Inherits="Admin_Role_List" Title="无标题页" CodeBehind="List.aspx.cs" %>

<%@ Register Src="../../Common/Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/addnew.gif);">
                &nbsp;</b>
                <asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/DELETE.gif);">
                &nbsp;</b>
                <asp:Literal ID="Literal2" runat="server" Text="删除"></asp:Literal></span></a></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="Label1" runat="server" Text="默认角色是当增加一个用户或一个模块自动属于某一角色"></asp:Label></div>
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    角色名称
                </th>
                <th>
                    类型
                </th>
                <th>
                    描述
                </th>
                <th>
                    用户
                </th>
                <th>
                    模块
                </th>
                <th>
                    权限
                </th>               
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" 
                onitemdatabound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" Enabled='<%# IsEdit(Eval("TypeID")) %>' />
                        </td>
                        <td>
                            <asp:HyperLink ID="lnkName" runat="server" Text='<%# Eval("Name") %>' Enabled='<%# IsEdit(Eval("TypeID")) %>'
                                ToolTip='<%# Eval("Remark") %>'></asp:HyperLink>
                        </td>
                        <td>
                            <%#(Jzy.Core.Admin.RoleType)Eval("TypeID")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("Remark") %>&nbsp;
                        </td>
                        <td>
                            <asp:Image ID="imgUser" runat="server" ImageUrl="~/common/images/common/USERS.GIF"
                                ToolTip="选择用户" />&nbsp;
                        </td>
                        <td>
                            <asp:Image ID="imgModule" runat="server" ImageUrl="~/common/images/common/roleFunction.gif"
                                ToolTip="选择模块" />&nbsp;
                        </td>
                        <td>
                            <asp:Image ID="imgRight" runat="server" ImageUrl="~/common/images/Common/right.gif"
                                ToolTip="选择权限" />&nbsp;
                        </td>                       
                    </tr>
                </ItemTemplate>
            </asp:ListView>
        </table>        
    </div>
    <uc1:Footer ID="Footer1" runat="server" />
    <div id="toolbar_bottom">
        <asp:Button ID="btnDelete" runat="server" CausesValidation="False" CssClass="btn"
            OnClick="btnDelete_Click" Text="删除" />
        <asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" Text="Button"
            CssClass="refresh" />
    </div>
</asp:Content>
